<template>
  <n-switch v-model:value="active" @update:value="handleChange" />
</template>

<script lang="ts" setup>

const props = defineProps<{active: boolean}>();

const emits = defineEmits<{(e: "handleChange", value: boolean): void}>();
const handleChange = (value: boolean): void => {
  emits("handleChange", value);
}
</script>
